#pragma once // FIXME: header file need add this line

#include <iostream>
#include <string>

//using namespace std;    // FIXME: header file, it is better do not using namespace

#define PERSON_MAX 1000     // FIXME: `MAX` is not clear, `PERSON_MAX` is better

struct person // FIXME: `Person` is better
{
    std::string name;
    int sex;
    int age;
    std::string phone;
    std::string addr;
};

struct addressbook
{
    struct person personarr[PERSON_MAX];
    int size;
};

void showmenu();
void addperson(struct addressbook *abs);
void clear();
void showperson(struct addressbook *abs);
void deleteperson(struct addressbook *abs);
void findperson(struct addressbook *abs);
void changeperson(struct addressbook *abs);
void cleanperson(struct addressbook *abs);
